import request from "./request.js"
async function getCate(){
	let {data}=await request({
		url:"/public/v1/categories"
	})
	return data
}
//获取分类数据



async function getList(params){
	let {data}=await request({
		url:"/public/v1/goods/search",
		data:params
	})
	return data
}
//获取商品列表


async function getDetail(params){
	let {data}=await request({
		url:"/public/v1/goods/detail",
		data:params
	})
	return data
}
//获取商品详情数据
export {getCate,getList,getDetail}